// import Vue from 'vue'
import Router from "vue-router";
const Login = () =>
  import(/* webpackChunkName: "Index" */ "@/views/login/index");
const HomePage = () => import(/* webpackChunkName: "Index" */ "@/views/index");
const IndexPage = () =>
  import(/* webpackChunkName: "IndexPage" */ "@/views/indexPage/index");
const StreetKey = () =>
  import(/* webpackChunkName: "Index" */ "@/views/streetKey/index");
const StreetKeyError = () =>
  import(/* webpackChunkName: "Index" */ "@/views/streetKey/error");
const KeyIndicators = () =>
  import(/* webpackChunkName: "Index" */ "@/views/keyIndicators/index");
const KeyIndicatorsImport = () =>
  import(/* webpackChunkName: "Index" */ "@/views/keyIndicators/keyForm");
const KeyIndicatorsError = () =>
  import(/* webpackChunkName: "Index" */ "@/views/keyIndicators/error");
const ContentManage = () =>
  import(/* webpackChunkName: "Index" */ "@/views/contentManage/index");
const streetMaintain = () =>
  import(/* webpackChunkName: "Index" */ "@/views/streetMaintain/index");
const ContentManageDetail = () =>
  import(/* webpackChunkName: "Index" */ "@/views/contentManage/detail");
const MarketManage = () =>
  import(/* webpackChunkName: "Index" */ "@/views/contentManage/market");
const MarketManageDetail = () =>
  import(/* webpackChunkName: "Index" */ "@/views/contentManage/marketDetail");
const MarketManageAdd = () =>
  import(/* webpackChunkName: "Index" */ "@/views/contentManage/marketAdd");
const InfoMaintain = () =>
  import(/* webpackChunkName: "Index" */ "@/views/infoSetting/infoMaintain");
const InfoMaintainEdit = () =>
  import(
    /* webpackChunkName: "Index" */ "@/views/infoSetting/infoMaintainEdit/index"
  );
const NoticeSetting = () =>
  import(/* webpackChunkName: "Index" */ "@/views/infoSetting/noticeSetting");
const NoticeSettingEdit = () =>
  import(
    /* webpackChunkName: "Index" */ "@/views/infoSetting/noticeSettingEdit/index"
  );
const WarnSetting = () =>
  import(/* webpackChunkName: "Index" */ "@/views/infoSetting/warnSetting");
const NoticeFeedback = () =>
  import(/* webpackChunkName: "Index" */ "@/views/infoSetting/noticeFeedback");
const PlateNoticeFeedback = () =>
  import(
    /* webpackChunkName: "Index" */ "@/views/infoSetting/plateNoticeFeedback"
  );
const PersonMaintain = () =>
  import(/* webpackChunkName: "Index" */ "@/views/infoSetting/personMaintain");
const personMaintainEdit = () =>
  import(
    /* webpackChunkName: "Index" */ "@/views/infoSetting/personMaintainEdit/index"
  );
const personnelInfo = () =>
  import(/* webpackChunkName: "Index" */ "@/views/personnelInfo/index");
const operationLog = () => import("@/views/operationLog/index");

export default new Router({
  routes: [
    {
      path: "/",
      redirect: "/login",
      meta: {
        title: "首页",
      },
    },
    {
      path: "/login",
      name: "LoginIndex",
      component: Login,
      meta: {
        title: "登录",
      },
    },
    {
      path: "/homePage",
      name: "HomePage",
      component: HomePage,
      meta: {
        title: "首页",
      },
      redirect: "/indexPage",
      children: [
        {
          path: "/indexPage",
          name: "IndexPage",
          component: IndexPage,
          meta: {
            title: "首页",
            keepAlive: true,
          },
        },
        {
          path: "/operationLog",
          name: "OperationLog",
          component: operationLog,
          meta: {
            title: "操作日志",
            keepAlive: true,
          },
        },
        {
          path: "/keyIndicators",
          name: "KeyIndicators",
          component: KeyIndicators,
          meta: {
            title: "辖区指标管理",
            keepAlive: true,
          },
        },
        {
          path: "/keyIndicatorsImport",
          name: "KeyIndicatorsImport",
          component: KeyIndicatorsImport,
          meta: {
            title: "指标数据录入",
          },
        },
        {
          path: "/keyIndicatorsError",
          name: "KeyIndicatorsError",
          component: KeyIndicatorsError,
          metha: {
            title: "辖区指标最新异常数据",
          },
        },
        {
          path: "/streetKey",
          name: "StreetKey",
          component: StreetKey,
          meta: {
            title: "镇(街)指标管理",
            keepAlive: true,
          },
        },
        {
          path: "/streetKeyError",
          name: "StreetKeyError",
          component: StreetKeyError,
          meta: {
            title: "镇(街)指标最新异常数据",
          },
        },

        {
          path: "/marketManage",
          name: "MarketManage",
          component: MarketManage,
          meta: {
            title: "以事找人任务管理",
            keepAlive: true,
          },
        },
        {
          path: "/marketManageAdd",
          name: "MarketManageAdd",
          component: MarketManageAdd,
          meta: {
            title: "以事找人任务任务管理",
            keepAlive: true,
          },
        },
        {
          path: "/marketManageDetail",
          name: "MarketManageDetail",
          component: MarketManageDetail,
          meta: {
            title: "以事找人任务详情",
          },
        },
        {
          path: "/contentManage",
          name: "ContentManage",
          component: ContentManage,
          meta: {
            title: "重点关注任务管理",
            keepAlive: true,
          },
        },
        {
          path: "/contentManageDetail",
          name: "ContentManageDetail",
          component: ContentManageDetail,
          meta: {
            title: "重点关注任务详情",
          },
        },
        {
          path: "/streetMaintain",
          name: "streetMaintain",
          component: streetMaintain,
          meta: {
            title: "街道（乡镇）信息维护",
            keepAlive: true,
          },
        },

        {
          path: "/infoMaintain",
          name: "InfoMaintain",
          component: InfoMaintain,
          meta: {
            title: "指标信息维护",
            keepAlive: true,
          },
        },
        {
          path: "/noticeSetting",
          name: "NoticeSetting",
          component: NoticeSetting,
          meta: {
            title: "通知配置",
            keepAlive: true,
          },
        },
        {
          path: "/warnSetting",
          name: "WarnSetting",
          component: WarnSetting,
          meta: {
            title: "警告提醒配置",
            keepAlive: true,
          },
        },
        {
          path: "/noticeSetting/edit",
          name: "NoticeSettingEdit",
          component: NoticeSettingEdit,
          metha: {
            title: "新建/编辑",
          },
        },
        {
          path: "/noticeFeedback",
          name: "NoticeFeedback",
          component: NoticeFeedback,
          meta: {
            title: "异常反馈处理",
            keepAlive: true,
          },
        },
        {
          path: "/plateNoticeFeedback",
          name: "PlateNoticeFeedback",
          component: PlateNoticeFeedback,
          meta: {
            title: "平台异常反馈处理",
            keepAlive: true,
          },
        },
        {
          path: "/personMaintain",
          name: "PersonMaintain",
          component: PersonMaintain,
          meta: {
            title: "责任人信息维护",
            keepAlive: true,
          },
        },
        {
          path: "/infoMaintain/edit",
          name: "InfoMaintainEdit",
          component: InfoMaintainEdit,
          meta: {
            title: "新建/编辑",
          },
        },
        {
          path: "/personMaintain/edit",
          name: "personMaintainEdit",
          component: personMaintainEdit,
          meta: {
            title: "新建/编辑",
          },
        },
        {
          path: "/personnelInfo",
          name: "personnelInfo",
          component: personnelInfo,
          meta: {
            title: "人员信息",
          },
        },
      ],
    },
  ],
});
